<?php

namespace App\Http\Controllers\WebPage\Admin;


use App\Http\Controllers\Controller;
use App\Http\Models\Feedback;

/**
 * 帕克西官网提交反馈
 *
 * Class FeedbackController
 * @package App\Http\Controllers\WebPage\Admin
 */
class FeedbackController extends Controller
{

    public function index()
    {
        $feedbacks = Feedback::all()->sortByDesc('id');

        return  view('web-admin.feedback',compact('feedbacks'));
    }

    public function edit($id)
    {
        $feedback = Feedback::find($id);

        return $feedback;
    }

}
